/*
 * Copyright (c) 2010-present www.walkerljl.org All Rights Reserved.
 * The software source code all copyright belongs to the author, 
 * without permission shall not be any reproduction and transmission.
 */
package org.walkerljl.commons.mail;

import org.walkerljl.commons.Constants;

/**
 * EmailMessage
 *
 * @author lijunlin
 */
public class EmailMessage {

    private final String content;
    private final String mimeType;
    private final String encoding;

    /**
     * Defines email content.
     */
    public EmailMessage(String content, String mimeType, String encoding) {
        this.content = content;
        this.mimeType = mimeType;
        this.encoding = encoding;
    }

    /**
     * Defines UTF-8 email content.
     */
    public EmailMessage(String content, String mimeType) {
        this.content = content;
        this.mimeType = mimeType;
        this.encoding = Constants.DEFAULT_ENCODING;
    }

    // ---------------------------------------------------------------- getters

    /**
     * Returns message content.
     */
    public String getContent() {
        return content;
    }

    /**
     * Returns message mime type.
     */
    public String getMimeType() {
        return mimeType;
    }

    /**
     * Returns message encoding.
     */
    public String getEncoding() {
        return encoding;
    }
}